//
//  SearchDirectoryViewController.h
//  HandyDialer
//
//	Developed by Team Synergy
//  Created by Jordan Tseng on 10/29/11.
//  Coders: Jacky Li and Jordan Tseng 
//  Graphic Designer: Derek Fong
//  Developers: Brad Lisson, Derek Fong, Jacky Li, Jeremy Gangoso, Jordan Tseng
//  Copyright HandyDialer 2011. All rights reserved.
//
//  Class Descrption: A meanu for searching people on the 411 Canada. 
//
//  Member Variables:
// int rowCounter
//  - stores which row the highlighting is at
// int columnCounter
//  - once which row is selected the varaible stores which column it is at
// int iterationCounter
//  - stores when the timeout happens 
// bool buttonSelect
//  - if selected or not
// NSTimer *uniTimer
//  - Highlighting done in seconds
// NSString *number
//  - shows what number the user is calling
// NSUserDefaults *defaults
//  - Setting default status of the Search Directory
// float speed
//  - stores how fast the speed is going  
// NSString *highlightColor
//   - type of color highligh is done in
// NSString *themeColor
//   - type of theme for the whole application
//  Member functions:
//  + (IBAction)switchView:(id)sender
//                  - Actually switching to that screen 
//  + (void)highlightChange:(NSString *)picture
//                  - change highlighting between row and column pictures
//  + (void)appendNum:(int)input
//                  - append the number onto the string
//  + (NSString *)parseNum:(NSString *)num
//              - append '-' as necessary
//  + (void)buttonChange
//                  - change which button the button is currently on in the picture. Row or column
//  + (void)rowChange
//                  - change the row change of the highlighting
//
//	Bugs (unfixed):
//				None found so far
//
//	Unfinished Features:
//				None
//

#import <UIKit/UIKit.h>
#import "ResultSearchDirectoryViewController.h"
#import "InvalidInputViewController.h"
#import "DataStorage.h"

@interface SearchDirectoryViewController : UIViewController
{
	int rowCounter;
	int columnCounter;
	int iterationCounter;
    int numberLength;
	bool buttonSelect;
	NSTimer *uniTimer;
	NSString *number;
    NSUserDefaults *defaults;
	float speed;
	NSString *highlightColor;
	NSString *themeColor;
	IBOutlet UIImageView *highlightArea;
	IBOutlet UIImageView *backgroundArea;
	IBOutlet UILabel *reverseNumber;
}

- (IBAction)switchView:(id)sender;

- (void)highlightChange:(NSString *)picture;

- (void)appendNum:(int)input;
- (NSString *)parseNum:(NSString *)num;
- (void)buttonChange;
- (void)rowChange;

@property (nonatomic, retain)UIImageView *highlightArea;
@property (nonatomic, retain)UIImageView *backgroundArea;
@property (nonatomic, retain)UILabel *reverseNumber;

@end
